import request from '@/utils/request'

// 查询职位列表
export function listPositions(query) {
  return request({
    url: '/system/positions/list',
    method: 'get',
    params: query
  })
}

// 查询职位详细
export function getPositions(positionId) {
  return request({
    url: '/system/positions/' + positionId,
    method: 'get'
  })
}

// 新增职位
export function addPositions(data) {
  return request({
    url: '/system/positions',
    method: 'post',
    data: data
  })
}

// 修改职位
export function updatePositions(data) {
  return request({
    url: '/system/positions',
    method: 'put',
    data: data
  })
}

// 删除职位
export function delPositions(positionId) {
  return request({
    url: '/system/positions/' + positionId,
    method: 'delete'
  })
}
